<%@ page language="java" pageEncoding="UTF-8"%>
<%@ page import= "com.roadmap.struts.action.ActionConst"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%
String user_req_id = (String)request.getParameter(ActionConst.Aspirant_Id_In_Request);
if(user_req_id == null){
	user_req_id = "";
}
String user_ssn_name = (String) request.getSession().getAttribute(ActionConst.Aspirant_Name_In_Session);
String user_ssn_id = (String)request.getSession().getAttribute(ActionConst.Aspirant_Id_In_Session);
%>
		
			<!-- add comment -->
			<div class="comments">
				<div class="commentTitle">评论</div>
				<ul id="commentList">
					<li id="commentNode" style="display:none;">
						<div class="author">
							<div class="float-left"><a href="aspirant.do?uid=<%=user_ssn_id %>"><%=user_ssn_name %></a><em id="cmtTime"></em></div>
							<div class="float-right">
								<a id="editCmtLink" href="javascript:void(0);" onclick="cid=this.id.substring(11);commentUtil.edit(cid);"><img src="res/images/logo/edit_10.png" title="编辑"/></a>&nbsp;
								<a id="deltCmtLink" href="javascript:void(0);" onclick="cid=this.id.substring(11);commentUtil.remove(cid);"><img src="res/images/logo/delete_10.png" title="删除"/></a>
							</div>
						</div>
						<div id="comment_content" class="content"></div>
					</li>
					
					<logic:present name="comments">
						<logic:iterate id="comment" name="comments">
							<bean:define id='cid' name='comment' property='id'/>
							<li id="commentNode<%=cid%>">
								<div class="author">
									<div class="float-left"><a href="aspirant.do?uid=<bean:write name='comment' property='authorId'/>"><bean:write name='comment' property='authorName'/></a><em id="cmtTime<%=cid %>"><bean:write format='yyyy-MM-dd HH:mm' name='comment' property='updatedTime'/></em></div>
									<logic:match name='comment' property='authorId' value="<%=user_ssn_id %>">
									<div class="float-right">
										<a href="javascript:void(0);" onclick="commentUtil.edit('<%=cid%>');"><img src="res/images/logo/edit_10.png" title="编辑"/></a>&nbsp;
										<a href="javascript:void(0);" onclick="commentUtil.remove('<%=cid%>');"><img src="res/images/logo/delete_10.png" title="删除"/></a>
									</div>
									</logic:match>
								</div>
								<div  id="comment_content<%=cid %>" class="content"><bean:write name='comment' property='content'/></div>
							</li>
						</logic:iterate>
					</logic:present>
				</ul>
			</div>
			
			<jsp:include page="/pagelet/pagingBarPagelet.jsp"/>
			
			<div class="comments">
				<div class="enterCmt">
					<table>
						<tr><td style="text-align:left;"><strong>添加评论</strong></td></tr>
						<tr><td><textarea id="cmtContent" class="input-text" style="width:400px; height:100px;"></textarea></td></tr>
						<tr><td><input id="publishComment" class="confirmBtn" type="button" value="发表" onclick="commentUtil.add();"/></td></tr>
					</table>
				</div>
			</div>
			